import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/home.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
      children:[
        {
          path:'/tool/PreviewPDF',
          name: 'PreviewPDF',
          component: () => import('@/views/tools/PreviewPDF.vue')
        },
        {
          path:'/tool/PreviewPDF2',
          name: 'PreviewPDF2',
          component: () => import('@/views/tools/PreviewPDF2.vue')
        },
      ]
    }
  ]
})

export default router
